package com.he.exception;

import static com.he.enums.StatusCodeEnum.FAIL;

/**
 * @author He
 * @version 1.0
 * @Date 2023/9/7 9:47
 * @Desc
 */
public class ServiceException extends RuntimeException{
    /**
     * 返回失败状态码
     */
    private Integer code = FAIL.getCode();

    /**
     * 返回信息
     */
    private final String message;

    public ServiceException(String message) {
        this.message = message;
    }

}
